package com.yue.pattern.singleton;

/**
 * 线程不安全， 不可用
 * Created by qiuyang on 06/04/2017.
 */
public class LazySingleton {
    private static LazySingleton singleton = null;

    private LazySingleton(){}

    public static LazySingleton getInstance() {
        if (singleton == null) {
            singleton = new LazySingleton();
        }

        return singleton;
    }
}
